import {
  HomeOutlined,
  AppstoreOutlined,
  PieChartOutlined,
  BarsOutlined,
  ToolOutlined,
  UserOutlined,
  SafetyOutlined,
  AreaChartOutlined,
  BarChartOutlined,
  LineChartOutlined
} from '@ant-design/icons'

const routerArr = [
  { title: '首页', path: '/admin/home', icon: HomeOutlined },
  { title: '商品', path: 'commodity', icon: AppstoreOutlined, children: [
    { title: '品类管理', path: '/admin/classification', icon: BarsOutlined },
    { title: '商品管理', path: '/admin/administration', icon: ToolOutlined },
  ] },
  { title: '用户管理', path: '/admin/user', icon: UserOutlined },
  { title: '角色管理', path: '/admin/role', icon: SafetyOutlined },
  { title: '图形图表', path: 'chart', icon: AreaChartOutlined, children: [
    { title: '柱形图', path: '/admin/column', icon: BarChartOutlined },
    { title: '折线图', path: '/admin/line', icon: LineChartOutlined },
    { title: '饼图', path: '/admin/pie', icon: PieChartOutlined },
  ] },
]

export default routerArr
